import static org.junit.Assert.*;

import org.junit.Test;

import java.util.Date;
import edu.gatech.wheresmystuff.model.User;
import edu.gatech.wheresmystuff.model.Item;

public class JohnTest {

	@Test
	public void test() {
		Date date = new Date(100,0,0);
		User user = new User();
		Item item = new Item("Item","This is an item","Furniture",date, user,"Moon, Solar System","found");
		item.setID(230192409);
		assertTrue(item.getID() == 230192409);
		assertTrue(item.getCategory().equals("Furniture"));
		assertTrue(item.getStatus().equals("found"));
		assertTrue(item.getDate().equals(new Date(100,0,0)));
		assertTrue(item.getName().equals("Item"));
		assertTrue(item.getDesc().equals("This is an item"));
		assertTrue(item.getUser().equals(user));
		
		assertFalse(item.getID() == 23019249);
		assertFalse(item.getCategory().equals("Wrong Category"));
		assertFalse(item.getStatus().equals("lost"));
		assertFalse(item.getDate().equals(new Date(0,0,0)));
		assertFalse(item.getName().equals("Fake Name"));
		assertFalse(item.getDesc().equals("This is the wrong item"));
		assertFalse(item.getUser().equals(new User()));
	}

}
